package com.ruoyi.tzzl.service.imp;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tzzl.domain.WzMatchmakerLevel;
import com.ruoyi.tzzl.mapper.WzMatchmakerLevelMapper;
import com.ruoyi.tzzl.service.IWzMatchmakerLevelService;
import org.springframework.stereotype.Service;

/**
 * 等级管理Service业务层处理
 * @author by caoyong
 * @date 2022/11/8
 **/
@Service
public class WzMatchmakerLevelServiceImpl extends ServiceImpl<WzMatchmakerLevelMapper,WzMatchmakerLevel> implements IWzMatchmakerLevelService {

    @Override
    public WzMatchmakerLevel getByLevel(Long level) {
        LambdaQueryWrapper<WzMatchmakerLevel> lqw =new LambdaQueryWrapper<>();
        lqw.eq(WzMatchmakerLevel::getLevel,level.toString());
        WzMatchmakerLevel wzMatchmakerLevel = this.getOne(lqw);
        return wzMatchmakerLevel;
    }
}
